home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990725-20000114 / 000318_news@columbia.edu _Sat Dec 4 14:34:04 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA28824
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sat, 4 Dec 1999 14:34:04 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id OAA22779
  7.     for kermit.misc@watsun.cc.columbia.edu; Sat, 4 Dec 1999 14:18:59 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: Changing directories/overwriting files
  11. Date: 4 Dec 1999 19:18:58 GMT
  12. Organization: Columbia University
  13. Message-ID: <82bpf2$m7o$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <82bo81$l3d$1@blackice.winternet.com>,
  17. Christian Jensen <cejensen@winternet.com> wrote:
  18. : I am new to kermit, and am having trouble with a script that uploads files
  19. : from a CCI-DOS machine (running the newest MS-DOS kermit) to an HP-UX server
  20. : (running C-Kermit). I am attempting to upload files to one directory, cd to
  21. : another and upload files there, then cd to another and upload still more
  22. : files to this third directory. The code looks something like this:
  23. : cd /Net/go/dir1\13
  24. : send file1
  25. : output cd ..\13
  26. : output cd dir2\13
  27. : send file2
  28. : output cd ..\13
  29. : output cd dir3\13
  30. : send file3
  31. : Notice the three directories are all subdirctories off the same directory.
  32. : In my current script, the 'cd' commands all fail for some reason, and files
  33. : are all deposited in the same directory (the first one).
  34. : What's wrong with my code? Suggestions welcome.
  35. Put C-Kermit in server mode, then change your script to:
  36.  
  37.   cd /Net/go/dir1\13
  38.   send file1
  39.   if fail stop 1 UPLOAD file1 failed
  40.   remote cd ../dir2
  41.   if fail stop 1 REMOTE CD dir2 failed
  42.   send file2
  43.   if fail stop 1 UPLOAD file2 failed
  44.   remote cd ../dir3
  45.   if fail stop 1 REMOTE CD dir2 failed
  46.   send file3
  47.   if fail stop 1 UPLOAD file3 failed
  48.  
  49. Maybe your original script failed because HP-UX Kermit was already in server
  50. mode, and therefore needed client protocol commands rather than interactive
  51. commands?
  52.  
  53. : Also, if a file is uploaded to a directory that already contains a file with
  54. : that name, rather than overwriting the original (which is what I usually
  55. : want), kermit renames the uploaded file by appending a ~1~ to the end of it.
  56. This is not the default behavior.  The default is to rename the existing file
  57. and store the incoming file under the original name.
  58.  
  59. : How do I suppress this behavior?
  60. : I do have the kermit book, but have not found the answers to either of the
  61. : above in it.
  62. Explained on page 196.  ("File names, collision of" in the index.)
  63.  
  64. - Frank